import os
import sys

if __name__ == '__main__':
    length = len(sys.argv)
    if length == 2:
        os.system("pyuic5.exe %s -o %s_impl.py" % (sys.argv[1], sys.argv[1].split(r'.')[0]))
    else:
        print("Usage:\npython pyuicutil *.ui")
